package TestXunuan;

public class TestXunuan {
    public static void main(String[] args) {
        for (int i=1;i<=9;i++){
            for (int j=1;j<=i;j++){
                System.out.print(j+"*"+i+"="+i*j+"\t");
            }
            System.out.println();
        }
        System.out.println("##############");

        int n=0;
        int sum1=0;
        int sum2=0;
        while (n<=100){
            if (n%2==0){

                sum2=sum2+n;
            }else if (n%2!=0){

                sum1=sum1+n;
            }
            n++;
        }
        System.out.println("100以内偶数的和:"+sum2);
        System.out.println("100以内奇数的和:"+sum1);

        System.out.println("#############");
        System.out.println("输出1-1000能被5整除的数");

        int count=0;
        for (int i=1;i<=1000;i++){
            if (i%5==0){
                System.out.print(i+"\t");
                count++;
            }
            if (count==5){
                System.out.println();
                count=0;
            }
        }


    }
}
